﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UIBloqueEditGrid.ascx.cs" 
Inherits="UILGestion.Admin.UILocalizacion.UIBloqueEditGrid" %>



 <%@ Register assembly="WebLib" namespace="WebLib" tagprefix="lib" %>


<input id="idLocalizacion" type="hidden" runat="server"/>


<asp:UpdatePanel ID="GridUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>



 <asp:GridView ID="itemGridView" Runat="Server" 
                SkinID="GridView"
                DataKeyNames="idInternal" 
                onrowcancelingedit="CancelItem" 
                onrowediting="EditItem" 
                OnRowUpdating="UpdateItem" 
                ShowFooter="True">
                            
                            <Columns>
                            
                            <asp:TemplateField HeaderText="Bloque/Piso" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="350px"><ItemTemplate>
                            
                            <asp:Label ID="descripcionLabel" runat="server" BackColor="Transparent" 
                            Text='<%# Eval("descripcion")%>'/>
                            </ItemTemplate>
                            <EditItemTemplate>
                            <lib:Input ID="descripcionTextBox" runat="server" backcolor="#DFE8F6" 
                           
                           text='<%# Eval("descripcion")%>' Width="200px" />


                            </EditItemTemplate>
                            
                            <FooterTemplate>
                            <lib:Input ID="descripcionTextBox" runat="server" Width="200px"/>
                            
                              </FooterTemplate>
                              
                              </asp:TemplateField>

                                 <asp:CommandField ButtonType="Image" CancelImageUrl="~/Images/cancel.gif" 
                            EditImageUrl="~/Images/edit.gif" ShowEditButton="true" 
                            UpdateImageUrl="~/Images/update.gif" />



                                <asp:TemplateField >
                            
                            <ItemTemplate>
                            
                            <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control"  
                                    CommandArgument='<%# Eval("idInternal")%>' OnClick="DeleteItem" 
                                    OnClientClick="return confirm('Usted quiere eliminar?')"  ImageUrl="~/Images/delete.gif"   />
                                    </ItemTemplate>
                                    
                                    <FooterTemplate>
                                    
                                    <asp:Button ID="addProvAdd" runat="server" OnClick="AddItem" Text="Añadir" CssClass="ms-crm-List-Header"/>
                                    </FooterTemplate>
                                    </asp:TemplateField>
                                    



                              </Columns>
                              </asp:GridView>

</ContentTemplate>
</asp:UpdatePanel>





